def byname(x):
    return x[0].lower()

def byscore(x):
    return x[1]

L = [('Bob', 75), ('Adam', 92), ('Bart', 66), ('Lisa', 88)]

print("sort by name:", sorted(L, key = byname))
print("sort by score:", sorted(L, key = byscore, reverse = True))
